package co.edu.usbcali.ai.ga;

import java.util.ResourceBundle;

import com.vsdworld.utils.MessageUtils;

public class Messages extends MessageUtils{

	public static final String USB_GA_0000="usb-ga-0000";
	public static final String USB_GA_0001="usb-ga-0001";
	public static final String USB_GA_0002="usb-ga-0002";
	public static final String USB_GA_0003="usb-ga-0003";
	public static final String USB_GA_0004="usb-ga-0004";
	
	public static final String PRM_EXCEPTION="exception";
	public static final String PRM_ERROR_CODE="errorCode";
	public static final String PRM_PARAM="param";
	public static final String PRM_SENTENCE="sentence";
	public static final String PRM_VALUE="value";
	public static final String PRM_OPERATION_TYPE="operationType";
	public static final String PRM_MUTATED="deltaName";
	public static final String PRM_WINNERS="schemaName";
	public static final String PRM_CHILDREN="children";
	public static final String PRM_GENERATION_SIZE="generationSize";
	public static final String PRM_GENERATION_NUMBER="generationNumber";
	public static final String PRM_BREED="breed";
	public static final String PRM_TOTAL_INDIVIDUALS="totalIndividuals";
	
	private static Messages instance;

	public Messages(ResourceBundle rs){
		super();
		resourceBundle=rs;
	}

	public static Messages getInstance() {
		if(instance==null){
			instance=new Messages(ResourceBundle.getBundle(Messages.class.getName()));
		}
		return instance;
	}

	public static void setInstance(Messages ins) {
		instance = ins;
	}
	
}
